We will discuss how the hardware was designed to support this operation, features that impact the context switching implementation such as the Floating Point Unit (FPU), and common pitfalls seen when porting an RTOS to a platform.
This example demonstrates simple real-time kernel context switching operations between two threads using MPU regions that are available in Arm Cortex-M processors.
This is an introductory topic for software developers who would like to learn about context switching operations on Cortex-M processors in a bare-metal environment.
Basically save the registers for one context, and restore the registers/state of a prior context and continue running. call it context, thread, task, whatever you want from a higher level programmers perspective